package day008.homework;

public class Test04 {
    public static void main(String[] args) {
        int[][] sales = {{11, 22, 33}, {44, 55, 66}, {77, 88, 99}, {11, 22, 33}};
        int[] res = new int[sales.length];
        for (int i = 0; i < sales.length; i++) {
            int sum = 0;
            for (int j = 0; j < sales[i].length; j++) {
                sum += sales[i][j];
            }
            res[i] = sum;
            sum = 0;
        }

        for (int i = 0; i < res.length; i++) {
            System.out.println("第" + (i + 1) + "季度营业额为：" + res[i]);
        }
    }
}
